package top.codervan.yygh.hosp.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import top.codervan.yygh.model.hosp.Schedule;

import java.util.Date;
import java.util.List;

/**
 * @Author: van
 * @Date: 2022/2/19 15:12
 */
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
